package generic;

public class MemTest {

    /**
     * @param args
     *
     * @author grind
     * @date Sep 5, 2013 11:25:10 AM
     */
    public static void main(String[] args){
        Runtime r = Runtime.getRuntime();

        long first = r.freeMemory();
        System.out.println(first>>20);
        int num[] = new int[100];
        for(int i = 0;i<100;i++)
            num[i] = i;
        long second = r.freeMemory();
        System.out.println(second);
        System.out.println(first-second);
    }

}
